<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<!--
To change h3is license header, choose License Headers in Project Properties.
To change h3is template file, choose Tools | Templates
and open h3e template in h3e editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
      
        <script type="text/javascript" charset="utf-8" src="/../Thinkphp/Public/library/utf8-php/ueditor.config.js"></script>
        <script type="text/javascript" charset="utf-8" src="/../Thinkphp/Public/library/utf8-php/ueditor.all.min.js"></script>
        <script type="text/javascript" charset="utf-8" src="/../Thinkphp/Public/library/utf8-php/lang/zh-cn/zh-cn.js"></script>

        <script type="text/javascript">
            var ue = UE.getEditor('editor');
        </script>
         <script src="/../Thinkphp/Application/Home/View/User/jquery/jquery-3.0.0.js"></script>
         
    </head>
    <body>
        <div>  <form action="<?php print U('admin/content/doupdate');?>" method="post" enctype="multipart/form-data">      
                <input type='hidden' name='id' value="<?php print $data['id'];?>"/>
                    <div>
                        <h3>版本<h3>                    
                            <select name='version' id="version">
                                <option value="1" <?php if($data['version']==1){?> selected="selected" <?php }?>>Drupal 6</option>
                                <option value="2" <?php if($data['version']==2){?> selected="selected"<?php }?>>Drupal 7</option>
                                <option value="3" <?php if($data['version']==3){?> selected="selected" <?php }?>>Drupal 8</option>
                            </select> 
                    </div>
                    <div>
                        <h3>模块分类</h3>                              
                            <select name='category' id="category">
                                <option value="1" <?php if($data['category']==1){?> selected="selected" <?php }?>>手机 </option>
                                <option value="2" <?php if($data['category']==2){?> selected="selected"<?php }?>>字段</option>
                                <option value="3" <?php if($data['category']==3){?> selected="selected" <?php }?>>安全</option>
                            </select> 
                    </div>
                    <div>
                        <h3>模块名</h3>
                        <input type='text' name='title' id="title" value="<?php print $data['title'];?>"/>
                              
                    </div>
                    <div>
                        <h3>内容</h3>                   
                        <textarea id='editor'  name='body' style="width:600px;height:300px;"><?php print $data['body'];?></textarea>    
                    </div>                                  
                    <div>
                        <h3>图片</h3> 
                        <input type="hidden" name="img" id="img" value="<?php print $data['img'];?>"/>
                       <?php if(!empty($data['img'])){?>
                        <img src="/Thinkphp/<?php print $data['img'];?>">
                        <?php }?>
                        <input type='file' name='image' id="image"/>
                    </div>
                    <input type='submit' value='确定' id="submit"/>
            </form>   
        </div>
    </body>
</html>